package murraco.exception;


import lombok.Data;
import murraco.common.ResultCode;


/**
 * 统一抛出异常
 *
 */
@Data
public class BusinessException extends RuntimeException{

    private ResultCode code;

    private String[] args;

    public BusinessException(ResultCode code){
        this.code=code;
    }

    public BusinessException(ResultCode code, String... args){
        this.code=code;
        this.args=args;
    }
}
